﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/MasterPage.Master" AutoEventWireup="true" CodeBehind="SearchPlaylists.aspx.cs" Inherits="SemPlayGen.Website.SearchPlaylists" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Panel runat="server" ID="pnlSearch" >
        <table>
            <tr>
                <td>Должина на плеј-листа:</td>
                <td>Тип на изведувач:</td>
                <td>Тип на музика:</td>
                <td>Вид на музика:</td>
            </tr>
            <tr>
                <td><asp:DropDownList runat="server" ID="ddlPlaylistlength" DataTextField="Name" DataValueField="Name" Width="180" OnDataBound="ddl_DataBound" /></td>
                <td><asp:DropDownList runat="server" ID="ddlArtistType" DataTextField="Name" DataValueField="Name" Width="150" OnDataBound="ddl_DataBound" /></td>
                <td><asp:DropDownList runat="server" ID="ddlMusicType" DataTextField="Name" DataValueField="Name" Width="150" OnDataBound="ddl_DataBound" /></td>
                <td><asp:DropDownList runat="server" ID="ddlGenre" DataTextField="Name" DataValueField="Name" Width="150" OnDataBound="ddl_DataBound" /></td>
            </tr>
            <tr>
                <td><asp:Button runat="server" ID="btnSearch" Text="Генерирај" Width="150px" Height="30px"
                        onclick="btnSearch_Click" /></td>
            </tr>
        </table>
    </asp:Panel>
    
    <div style="padding-top:30px;">
        <asp:GridView runat="server" ID="gvPlaylist" AutoGenerateColumns="false">
            <Columns>
                <asp:BoundField DataField="ArtistName" HeaderText="Изведувач" ItemStyle-Width="200" />
                <asp:BoundField DataField="SongName" HeaderText="Песна" ItemStyle-Width="200" />
                <asp:BoundField DataField="GenreName" HeaderText="Вид музика" ItemStyle-Width="150"  />
                <asp:BoundField DataField="HasLyrics" HeaderText="Има текст?" ItemStyle-Width="20" ItemStyle-HorizontalAlign="Center" />
            </Columns>
        </asp:GridView>
    </div>
</asp:Content>
